﻿/*
 * 登录邮箱所需的模板资源
 */
/******************************************** 广告 *********************************************/
var mailtop1 = '<iframe id="__mailtop1" name="__mailtop1" frameborder=0 scrolling=no src="http://images.sohu.com/bill/s2009/gates/mail/mail_top.html?'+ load_ads_rand +'" width="150px" height="18px" vspace=0 hspace=0 marginwidth=0 marginheight=0 allowtransparency></iframe>';
var inboxbanner = '<iframe id="__inboxbanner" name="__inboxbanner" frameborder=0 scrolling=no width="760px" height="100px" vspace=0 hspace=0 marginwidth=0 marginheight=0 src="http://images.sohu.com/cs/jsfile/mail/newinbox.html?'+ load_ads_rand +'" allowtransparency style="background-color:#f3f5fa;display:none;"></iframe>';
var succbanner = '<iframe id="__succbanner" name="__succbanner" width="590" scrolling="no" height="105" frameborder="0" src="http://ad.mail.sohu.com/mail/success.htm?'+ load_ads_rand +'" vspace="0" hspace="0" marginheight="0" marginwidth="0"></iframe>';
var __ads_url = (USE_SYS.name == 'sogou') ? 'http://ad.mail.sohu.com/mail/sogou_index_big.jsp' : 'http://ad.mail.sohu.com/mail/index_big.htm';
var homebig = '<iframe id="__homebig" name="__homebig" frameborder=0 scrolling=no width="300px" height="330px" vspace=0 hspace=0 marginwidth=0 marginheight=0 src="'+ __ads_url +'?'+ load_ads_rand +'" allowtransparency></iframe>';
var sogoucommend = '<iframe id="topad2_content" name="topad2_content" width="100%" height="100%" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="http://ad.mail.sohu.com/mail/sogou_ad1.html?'+ load_ads_rand +'"></iframe>';
// 读信页面右侧广告
// 读信页面右侧广告(如果是新疆的用户，就显示u盘推广)
var readright1 = _is_xj ? '<img src="'+ MailConst.ALL +'/xj_read.20100324.jpg" />' : '<iframe style="margin: 0px 2px;border: 0px;" marginwidth="2px" marginheight="0" frameborder="0" scrolling="no" allowtransparency="true" src="http://inte.sogou.com/textlink?pid=sohu__mail&ct=textlink&iw=138&ih=308&rn=10&cn=4&c_bg=FFFFFF&c_te=196CD4&c_ho=FF0000&pr=1&ul=2&al=0&ppc=0&orz=10&sohuurl='+ window.location.href +'#'+ load_ads_rand +'" width="138px" height="308px"></iframe>';
var readright2 = _is_xj ? '<img src="'+ MailConst.ALL +'/xj_read.20100324.jpg" />' : '<iframe style="margin: 0px 2px;border: 0px;" marginwidth="2px" marginheight="0" frameborder="0" scrolling="no" allowtransparency="true" src="http://images.sohu.com/bill/s2009/gates/mail/csreadad.html?'+ load_ads_rand +'" width="138px" height="308px"></iframe>';
/******************************************** 广告end *********************************************/


/*************************************** 用户自定义文件夹，新建文件夹列表 *************************************/
var folderDetailTable = '<table align="center" cellpadding="0" cellspacing="0" id="mailfolder" class="mail-folder">';
var folderDetailTitle = '<tr><th width="25%">名称</th><th width="25%">邮件数</th><th width="25%">占有空间</th><th width="25%">操作</th></tr>';
var folderDetailTemplate = '<tr><td id="td#{id}"><a hidefocus="true" href="main#mailList_#{id}" class="grey s_manage_folder" fid="#{id}">#{name}</a></td><td>#{mailCount}</td><td>#{size}</td><td>#{operations}</td></tr>';
var folderDetailTemplate2 = '<tr class="personal"><td id="td#{id}"><a hidefocus="true" href="main#mailList_#{id}" class="grey s_manage_folder" fid="#{id}">#{name}</a></td><td>#{mailCount}</td><td>#{size}</td><td>#{operations}</td></tr>';
var mailStatusTemplate = '共<b> #{totalMail} </b>封邮件，邮箱容量<b> #{totalQuota} </b>，已使用<b id="mailTotalSize"> #{totalSize} </b><span style="display:none;">，剩余<b> #{remainSize} </b>。</span>'
					   	 +'<br><br><p>'
                         +'新建完文件夹后，如果您希望只有符合某个条件的邮件才进入该文件夹，可以去“过滤器”中新建规则。 <a hidefocus="true" class="s_manage_filter" href="main#mailCfgFilter">[ 新建规则 ]</a>'
                         +'</p>';
var createNewFolderTemplate = '文件夹名称：<input type="text" class="input" name="newFolderName" id="newFolderName" />　<input type="button" class="yes s_manage_create" name="确定" value="确　定"/>　<input type="button" class="yes s_manage_cancel" name="取消" value="取　消"/>'
							  +'<p>1-10个中文字符；可用中文、英文、数字。</p>';
/*************************************** 用户自定义文件夹，新建文件夹列表end *************************************/



/********************************* 欢迎页的模板资源 ***********************************/
var mm_service = '<div id="service" class="service clear">'
	+'<div class="amv weltitle"><span style="width:220px;">。推荐服务</span><span>。功能更新</span></div>'
	+'<div id="serviceContent1" class="pt l"></div>'
	+'<div id="serviceContent2" class="pt r"></div>'
	+'</div>';

var mailMainTemplate = '<div class="m-home">'
	+'<div class="user-info">'
	+'<div class="inner">'
	+'<div class="uinfo">'
	+'<div class="u-name">您好：<span>'+ (PROFILE.fullname ? PROFILE.fullname : SUID) +'</span></div>'
	+'<div id="score_info f-lf"><div class="u-item"><span title="可用积分：12" class="am score-silver"></span></div><div class="u-item">积分：<span>2330</span></div><div class="u-item"><a href="http://score.mail.sohu.com/product.action" target="_blank">积分换礼</a></div></div>'
	+'</div>'
	
	+'<div id="service_md_ads" class="svc-md-ads"> 热卖毛衣精选，最后一周，低至59元！ </div>'
	
	+'</div>'
	+'</div>'
	
	/*
	+'<div>'
	+'<b class="mh-corner-xtop"><b class="mh-corner-xb1"></b><b class="mh-corner-xb2"></b><b class="mh-corner-xb3"></b></b>'
	+'<div class="nm-info"><div class="mh-corner-xboxcontent">'
	+'<div id="user_tips" class="inner">'
	// +'<div class="if-item"><div class="item-1"><span class="sender">fengjichuan </span><span> 给您发来了一封邮件 </span><span> 14:08 </span></div><div class="item-2"> 二期圣诞礼包，免费台历券、鲜花、妆品券都不缺？？？ </div></div>'
	// +'<div class="if-item"><div class="item-1"><span class="sender">fengjichuan </span><span> 给您发来了一封邮件 </span><span> 14:08 </span></div><div class="item-2"> 店庆特惠：英伦围巾2条49元抢，羽绒服2件399元，风衣399元(AD) </div></div>'
	// +'<div class="if-item"><div class="item-1"><span class="sender">fengjichuan </span><span> 给您发来了一封邮件 </span><span> 14:08 </span></div><div class="item-2"> Re: Does the memcached distribution protocol guarantee the latest item from the cache? </div></div>'
	+'<div id="user_tips1" class="if-item">没有新邮件？是不是朋友不知道你的邮件地址呢，<span class="clk s_compose_mail">主动告知</span>一下吧</div>'
	+'<div id="user_tips2" class="if-item"><span class="clk s_compose_card_mail">发点好玩的</span>东西，去逗逗Ta</div>'
	+'<div id="user_tips3" class="if-item">接下来要过什么节？<a href="http://ecard.mail.sohu.com/card/index.jsp?from=mail" target="_blank"><span class="clk">来这里看看</span></a></div>'
	
	+'</div>'
	+'</div></div>'
	+'<b class="mh-corner-xbottom"><b class="mh-corner-xb3"></b><b class="mh-corner-xb2"></b><b class="mh-corner-xb1"></b></b>'
	+'</div>'
	
	
	+'<div>'
	+'<div id="service_md_ads" class="svc-md-ads"> 热卖毛衣精选，最后一周，低至59元！ </div>'
	+'</div>'
	*/
	
	+'<div>'
	+'<b class="mh-corner-xtop"><b class="mh-corner-xb1"></b><b class="mh-corner-xb2"></b><b class="mh-corner-xb3"></b></b>'
	+'<div class="nm-info"><div class="mh-corner-xboxcontent">'
	+'<div class="inner">'
	+'<table style="width:100%;border:0;" cellpadding="0" cellspacing="0">'
	+'<tbody><tr>'
	
	+'<td><div class="ico-cot">'
	+'<div style="width:20%;" class="f-lf cur-pt s_mobile_mail" title="手机邮件"><div class="ico-bg ico1"></div><div class="txt">手机邮件</div></div>'
	+'<div style="width:20%;" class="f-lf cur-pt s_skin_mail" title="炫彩皮肤"><div class="ico-bg ico2"></div><div class="txt">炫彩皮肤</div></div>'
	+'<div style="width:20%;" class="f-lf cur-pt s_lab_mail" title="梦工场"><div class="ico-bg ico3"></div><div class="txt">梦工场</div></div>'
	+'<div style="width:20%;" class="f-lf cur-pt s_custom_mail" title="魔法情书"><div class="ico-bg ico4"></div><div class="txt">魔法情书</div></div>'
	+'<div style="width:20%;" class="f-lf cur-pt s_pop_mail" title="一箱多邮"><div class="ico-bg ico5"></div><div class="txt">一箱多邮</div></div>'
	+'</div></td>'
	
	/*
	+'<td style="width:50%;vertical-align:top;">'
	+'<div style="float:left;"><div class="am mobile-icon"></div></div>'
	+'<div style="float:left;margin-left:16px;"><div style="line-height:30px;"><a href="javascript:;" class="s_wap_mail"> ・WAP邮箱</a></div><div style="line-height:30px;"><a href="javascript:;" class="s_mobile_mail"> ・手机邮件</a></div></div>'
	+'</td>'
	+'<td style="width:50%;vertical-align:top;">'
	+'<div id="service_tips">'
	+'</div>'
	+'</td>'
	*/
	+'</tr></tbody>'
	+'</table>'
	
	+'</div>'
	+'</div></div>'
	+'<b class="mh-corner-xbottom"><b class="mh-corner-xb3"></b><b class="mh-corner-xb2"></b><b class="mh-corner-xb1"></b></b>'
	+'</div>'
	
	+'<div class="cmd">'
	+'<div class="title">精彩推荐</div>'
	+'<div id="service_ads" class="svc-ads">'
	
	+'</div>'
	+'</div>'
	
	+'</div>';
	
var mailMainAdTemplate = '<div>'
	+'<div class="a-bg ad-img-header"></div>'
	+'<div class="ad-img-body"><img src="'+ MailConst.ALL +'/ad_main.jpg" /></div>'
	+'<div class="a-bg ad-img-footer"></div>'
	
	+'<div class="ad-vote">'
	+'<div class="title"><div class="f-lf">您愿意用邮箱订阅下列哪种信息？</div><div class="f-lf"><a href="#">评论</a></div></div>'
	+'<div class="ct">'
	+'<div class="f-lf" style="width:120px;">'
	+'<div><span><input type="checkbox" /></span><span>社会新闻</span></div>'
	+'<div><span><input type="checkbox" /></span><span>社会新闻</span></div>'
	+'<div><span><input type="checkbox" /></span><span>社会新闻</span></div>'
	+'</div>'
	+'<div class="f-lf">'
	+'<div><span><input type="checkbox" /></span><span>社会新闻</span></div>'
	+'<div><span><input type="checkbox" /></span><span>社会新闻</span></div>'
	+'</div>'
	+'</div>'
	+'<div style="text-align:center;clear:both;"><input type="button" class="a-bg button-input" value="投 票" />　　<input type="button" class="a-bg button-input" value="查 看" /></div>'
	+'</div>';

var mm_service_c1 = '<div class="am mobile-icon"></div>'
			  +'<p style="margin-top:10px">· <a href="main#wapConfiguration" class="brown s_wap_mail">WAP邮箱</a></p>'
			  +'<p>· <a href="main#mobileConfiguration" class="s_mobile_mail">手机邮件</a>'
              // +'<a href="http://ad.mail.sohu.com/mail/tg/091102freewxl.html" onclick="jsoplog.ucCapture(\'momail_help\');" target="_blank"><img src="'+MailConst.ALL+'/icon_wu.gif" align="middle"/></a>+'
              // +'<a href="http://u.sohu.com/help/helpfree1.jsp" onclick="jsoplog.ucCapture(\'udisk_help\');" target="_blank"><img src="'+MailConst.ALL+'/icon_upan.gif" align="middle"/></a>'
              +'<a target="_blank" href="http://u.sohu.com/help/helpfree1.jsp" class="am go-udisk s_udisk"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</a>'
			  +'</p>';
	
/*
var mailMainTemplate_chinaren = '<div id="center"><div id="welcome">'
	+'<div id="info" class="info clear"></div>'
	+'<div id="service" class="service clear" style="height:400px;"></div>'
	+'</div></div>';
	
var commend_chinaren = '<iframe height="100%" frameborder="0" width="100%" scrolling="no" marginwidth="0" marginheight="0" hspace="0" vspace="0" src="http://club.chinaren.com/gg/sportinfo2.html"></iframe>';
*/

/********************************* 欢迎页的模板资源end ***********************************/



//在线调查 add by zhangyinghui
var voteOnline = '<div id="commend" class="survey">'
	+'<div class="amv weltitle"><span>在线调查</span></div>'
    +'<div id="ID_VOTEONLINE" class="vote" >'
    +'</div>'
    +'</div>';

/*
var mailTitleTemplate = '<tr style="height:1px;">'
	+'<th style="width:1%;"></th>'
	+'<th style="width:3%;"></th>'
	+'<th style="width:3%;"></th>'
	+'<th style="width:20%;"></th>'
	+'<th style="width:3%;"></th>'
	+'<th style="width:46%;"></th>'
	+'<th style="width:3%;"></th>'
	+'<th style="width:15%;"></th>'
	+'<th style="width:6%;"></th>'
	+'</tr>';
*/

var mailTitleTemplate = '<col style="width:12px;"></col>'
	+'<col style="width:30px;"></col>'
	+'<col style="width:30px;"></col>'
	+'<col style="width:30px;"></col>'
	+'<col style="width:220px;"></col>'
	+'<col style="width:30px;"></col>'
	+'<col style="width:100%;"></col>'
	+'<col style="width:150px;"></col>'
	+'<col style="width:60px;"></col>';
	
var mailTitle1 = '<tr class="amv title">'
	+'<td></td>'
	+'<td></td>'
	+'<td></td>'
	+'<td></td>'
	+'<td><a href="mail" style="font-weight:bold;" class="black s_sort_sender"">发件人</a>#{sort_sender}</td>'
	+'<td><span class="am #{star_level} s_sort_star" style="cursor:pointer;"></span></td>'
	+'<td><a href="mail" style="font-weight:bold;margin-left:8px;" class="black s_sort_subject">主题</a>#{sort_subject}</td>'
	+'<td style="text-align:right;"><a href="mail" style="font-weight:bold;" class="black s_sort_date">时间</a>#{sort_date}</td>'
	+'<td></td>'
	+'</tr>';
	
// 搜索列表的title
var mailTitleSearch = '<tr class="amv title">'
	+'<th style="width:1%;"></th>'
	+'<th style="width:3%;"><input type="checkbox" id="selectSearchAll" value="" /></th>'
	+'<th style="width:3%;"></th>'
	+'<th style="width:20%;"><a href="mail" style="font-weight:bold;" class="black s_sort_sender"">发件人</a>#{sort_sender}</th>'
	+'<th style="width:40%;"><a href="mail" style="font-weight:bold;margin-left:8px;" class="black s_sort_subject">主题</a>#{sort_subject}</th>'
	+'<th style="width:3%;"></th>'
	+'<th style="width:10%;"><span style="font-weight:bold;">文件夹</span></th>'
	+'<th style="width:15%;"><a href="mail" style="font-weight:bold;" class="black s_sort_date">时间</a>#{sort_date}</th>'
	+'<th style="width:5%;"><span style="font-weight:bold;">大小</span></th>'
	+'</tr>';
	
// 搜索会话列表title(不包含可排序的情况)
var mailCTitleSearch = '<tr class="amv title">'
	+'<th style="width:1%;"></th>'
	+'<th style="width:3%;"><input type="checkbox" id="selectSearchAll" value="" /></th>'
	+'<th style="width:3%;"></th>'
	+'<th style="width:20%;"><span style="font-weight:bold;">发件人</span></th>'
	+'<th style="width:40%;"><span style="font-weight:bold;margin-left:8px;">主题</span></th>'
	+'<th style="width:3%;"></th>'
	+'<th style="width:10%;"><span style="font-weight:bold;">文件夹</span></th>'
	+'<th style="width:15%;"><span style="font-weight:bold;">时间</span></th>'
	+'<th style="width:5%;"><span style="font-weight:bold;">大小</span></th>'
	+'</tr>';

var hintTemplate = '<div id="messageDiv" class="message"><div class="inner"><img style="margin-right:8px;" src="'+MailConst.ALL+'/icon_ok.gif" align="absmiddle" />#{message}</div></div>';

/******************************************* 写信页面 ******************************************/

var writeMailTemplate = '<table cellpadding=0 cellspacing=0 class="writemail-table"><tbody>'
	+'<tr><td colspan=2>'
	+'<div id="top_operate_area" class="operate">'
	+'</div>'
	+'</td></tr>'
	+'<tr>'
	+'<td valign="top">'
	+'<div id="writemail_area" class="write">'
	+'<div class="write-ct">'
	
	+'<div>'
	+'<ul id="mail.from" style="display:none;">'
	+'</ul>'
	+'<ul>'
	+'<li><b style="font-weight:normal">收件人：</b><input tabindex="1"  type="text" class="input" id="compose.wto" AUTOCOMPLETE="off" name="To" value=""/>'
	+'<p id="static_cc"><a hidefocus="true" href="./main" class="black s_show_mailcc">抄送</a></p>'
	+'<p id="static_bcc"><a hidefocus="true" href="./main" class="black s_show_mailbcc">密送</a></p>'
	+'<p id="static_single"><a hidefocus="true" class="s_single_send black" style="cursor:pointer;" send="true">分送</a></p>'
	+'<input  type="hidden" class="input"   id="securityCode"  value=""/>'
	+'</li>'
	+'</ul>'
	+'<ul id="mail.cc" style="display:none">'
	+'<li>抄　送：<input type="text" class="input" id="compose.wcc" AUTOCOMPLETE="off" name="Cc" value=""/>'
	+'</ul>'
	+'<ul id="mail.bcc" style="display:none">'
	+'<li>密　送：<input type="text" class="input" id="compose.wbcc" AUTOCOMPLETE="off" name="Bcc" value=""/>'
	+'</ul>'
	+'<ul>'
	+'<li>主　题：<input tabindex="2" name="Subject" id="compose.subject" type="text" class="input subject" value="" /></li>'
	+'</ul>'
	+'</div>'
	// 普通邮件的操作区域
	+'<div id="write_common_mail" style="clear:both;">'
	// 上传附件，定时发送区域
	+'<div style="clear:both;">'
	+'<div class="operation">'
	+'<div class="file-upload">'
	+'<div id="upload_file_area" class="area">'
	+'<span class="am upload-fileicon"></span>'
	+'<span id="upload_pointer" style="position:relative;"><span>上传附件</span><span style="color:#666666;"> ( 可上传10M )</span><span id="gears_notify"></span></span>'
	+'<div id="upload_iframe_content" class="form"></div>'
	+'</div>'
    +'<div id="ID_WRITEMAIL_CALLUDISK" style="float:left;cursor:pointer" onclick="udisk.getList()"><span class="am upload-fileicon"></span>U盘附件</div>'
	+'</div>'
	+'</div>'
	+'<div style="width:92%;"><div id="uploadInfoDIV" style="white-space:nowrap;width:100%;display:none;"></div></div>'
	+'</div>'
	+'<div id="write_letter_operate" style="clear:both;width:100%;display:none;"></div>'
	+'<div style="clear:both;border:1px solid #E1E1E1;">'
	+'<div id="compose.mess1" style="padding:0px;margin:0px;width:100%;" tabindex="3">'
	+'<div id="ineditor" tabindex="3" style="clear:both;"></div>'
	+'</div>'
	+'<div id="compose.mess2" style="width:100%;display:none;">'
	+'<div class="html-editor">'
	+'<div class="operate-bar">'
	+'<div class="item-disable"><a hidefocus="true" class="am item-bold"></a></div>'
	+'<div class="item-disable"><a hidefocus="true" class="am item-justifyleft"></a></div>'
	+'<div class="item-disable item-disable-font"><a hidefocus="true" class="am item-fontselect"><span class="text-in">字体</span></a></div>'
	+'<div class="item-disable item-disable-font"><a hidefocus="true" class="am item-fontsizeselect"><span class="text-in">字号</span></a></div>'
	+'<div class="item-disable"><a hidefocus="true" class="am item-forecolor"></a></div>'
	+'<div class="item-disable"><a hidefocus="true" class="am item-insertimage"></a></div>'
	+'<div class="item-disable"><a hidefocus="true" class="am item-createlink"></a></div>'
	+'<div class="item-disable"><a hidefocus="true" class="am item-sign"></a></div>'
	+'<div class="item-disable item-disable-letter"><a hidefocus="true" class="am item-letter"></a><span class="text-out">信纸</span></div>'
	+'<div class="item-disable item-disable-line"><div class="am item-line"></div></div>'
	+'<div class="item-disable item-disable-postcard s_use_postcard" style="cursor:pointer;" title="使用明信片"><a hidefocus="true" class="am item-postcard"></a><span class="text-out">使用明信片</span></div>'
	+'<div class="item-disable item-disable-line"><div class="am item-line"></div></div>'
	+'<div class="item-disable item-disable-convey s_use_convey" style="cursor:pointer;" title="使用魔法情书"><a hidefocus="true" class="am item-convey"></a><span class="text-out">使用魔法情书</span></div>'
	+'<div class="item-disable item-edit item-bold s_editor_change"> 多媒体 </div>'
	+'</div>'
	+'<textarea id="editor.mess2" tabindex="3" class="text-editor"></textarea>'
	+'</div>'
	+'</div>'
	+'</div>'
    +'<div><div>'
    +'<div class="f-lf" style="width:75px;height:24px;line-height:24px;"><div class="f-lf" style="padding-top:3px;_padding-top:0;"><input class="disposition_checkbox" id="disposition_notifier" type="checkbox" /></div><div class="f-lf">要求回执</div></div>'
    +'<div class="f-lf" style="width:75%;height:24px;line-height:24px;">'
	+'<div class="f-lf send-time m-l fix-ie6" style="padding-top:3px;_padding-top:0;"><input id="sot_control" type="checkbox" /></div>'
	+'<div class="send-time f-lf"> 定时发送 </div>'
	+'<div id="sohu_sot_container" class="f-lf send-time fix-ie6" style="display:none;">'
	+'<select id="sot_ui_year"> </select> 年'
	+'<select id="sot_ui_month"></select>月'
	+'<select id="sot_ui_day"></select>日'
	+'<select id="sot_ui_hour"> </select> 时'
	+'<select id="sot_ui_min"> </select>分'
	+'</div>'
    +'</div>'
    +'</div></div>'
	+'</div>'
	// 普通写信操作部分的结束
	// 明信片的操作部分
	+'<div id="write_card_mail" style="clear:both;">'
	// 上传附件，定时发送区域(变灰)
	+'<div class="operation">'
	+'<div class="file-upload">'
	+'<div class="area" style="color:#888888;">'
	+'<span class="am upload-fileicon"></span>'
	+'<span><span>上传附件</span><span> ( 可上传10M )</span></span>'
	+'</div>'
	+'<div class="send-time m-l fix-ie6"><input id="sot_control" type="checkbox" disabled /></div>'
	+'<div class="send-time" style="color:#888888;"> 定时发送 </div>'
	+'</div></div>'
	// 明信片的模板的显示区域
	+'<div id="select_card_operate" style="clear:both;width:100%;display:none;">'
	+'</div>'
	+'<div style="border: 1px solid #E1E1E1;padding:0px;margin:0px;clear:both;">'
	+'<div class="html-editor">'
	+'<div class="operate-bar">'
	+'<div class="item-disable"><a hidefocus="true" class="am item-bold"></a></div>'
	+'<div class="item-disable"><a hidefocus="true" class="am item-justifyleft"></a></div>'
	+'<div class="item-disable item-disable-font"><a hidefocus="true" class="am item-fontselect"><span class="text-in">字体</span></a></div>'
	+'<div class="item-disable item-disable-font"><a hidefocus="true" class="am item-fontsizeselect"><span class="text-in">字号</span></a></div>'
	+'<div class="item-disable"><a hidefocus="true" class="am item-forecolor"></a></div>'
	+'<div class="item-disable"><a hidefocus="true" class="am item-insertimage"></a></div>'
	+'<div class="item-disable"><a hidefocus="true" class="am item-createlink"></a></div>'
	+'<div class="item-disable"><a hidefocus="true" class="am item-sign"></a></div>'
	+'<div class="item-disable item-disable-letter"><a hidefocus="true" class="am item-letter"></a><span class="text-out">信纸</span></div>'
	+'<div class="item-disable item-disable-line"><div class="am item-line"></div></div>'
	+'<div class="item-disable item-disable-postcard item-focus s_show_postcard" style="cursor:pointer;" title="退出明信片"><a hidefocus="true" class="am item-postcard"></a><span class="text-out">退出明信片</span></div>'
	+'<div class="item-disable item-disable-line"><div class="am item-line"></div></div>'
	+'<div class="item-disable item-disable-convey s_use_convey" style="cursor:pointer;" title="使用魔法情书"><a hidefocus="true" class="am item-convey"></a><span class="text-out">使用魔法情书</span></div>'
	+'</div>'
	+'</div>'
	+'<div unselectable="on" id="postcard_option_area" class="postcard">'
	+'<div unselectable="on" id="postcard_area" class="postcard_area postcard_drag_area" style="z-index: 12;"></div>'
	+'<div unselectable="on" id="" class="postcard_area">'
	+'<div unselectable="on">'
	+'<img id="user_image" class="userimage" unselectable="on" src="'+ MailConst.ALL +'/spacer.gif" />'
	+'</div>'
	+'</div>'
	+'<div id="postcard_tmp" unselectable="on" class="postcard_tmp"></div>'
	+'<textarea id="postcard_textarea" class="postcard_textarea" style="font-size:12px;line-height:17px;">点击这里填写内容．．．</textarea>'
	+'<img id="user_image_shadow" class="userimageshadow menu-box-shadow" style="cursor:move;" unselectable="on" src="'+ MailConst.ALL +'/spacer.gif" />'
	+'<div id="postcard_area_range" class="postcard_area_range" unselectable="on"></div>'
	+'<div id="postcard_textarea_range" class="postcard_textarea_range" unselectable="on"></div>'
	+'<div id="postcard_slider" onmouseover="postcardSliderShow(this);" onmouseout="postcardSliderHide(this);" unselectable="on" style="clear: both;width: 36px; height: 120px;padding: 0px;margin: 4px;position: absolute;z-index: 19; left: 0px top: 0px; visibility: hidden;">'
	+'<div unselectable="on" style="padding:0px;margin:0px;width:100%;height:27px;"><div unselectable="on" id="postcard_slider_top" onclick="postCard.card_dblclick(true);" onmouseover="sliderTopLight(this);" onmouseout="sliderTopNormal(this);" style="cursor: pointer; height: 27px; width: 100%;"></div></div>'
	+'<div unselectable="on" style="padding:0px;margin:0px;width:100%;height:72px;position: absolute; top:27px;left:0px;z-index:16;"><div id="postcard_slider_body" unselectable="on" style="height: 72px; width: 100%;"></div></div>'
	+'<div unselectable="on" style="position: absolute; top:27px;left:0px; height: 72px; width: 100%; background:transparent;z-index:17;">'
	+'<div unselectable="on" id="postcard_slider_handle" style="cursor: url(\''+ MailConst.ALL +'/openedcursor.cur\'), default;position:absolute;z-index:18;top: 62px;left:0px;height:10px;width:100%;"><div onmouseover="sliderHandleLight(this);" onmouseout="sliderHandleNormal(this);" unselectable="on" style="width: 100%; height: 10px;"></div></div>'
	+'</div>'
	+'<div unselectable="on" style="padding:0px;margin:0px;width:100%;height:21px;position: absolute;top:99px;left:0px;z-index:27;"><div unselectable="on" id="postcard_slider_bottom" onclick="postCard.card_dblclick(false);" onmouseover="sliderBottomLight(this);" onmouseout="sliderBottomNormal(this);" style="cursor: pointer; height: 21px; width: 100%;"></div></div>'
	+'</div>'
	+'</div>'
	+'<div style="margin: 0px 10px 6px 10px;color: #007f59;"> 携手中国邮政，网络传递真实  <a hidefocus="true" href="javascript:;" onclick="clickCardSubmit2();return false;">发送纸质明信片>></a> </div>'
	+'</div>'
	+'</div>'
	// 明信片操作部分的结束
	// 传情计划操作部分
	+'<div id="write_convey_mail" style="clear:both;">'
	// 上传附件，定时发送区域(变灰)
	+'<div class="operation">'
	+'<div class="file-upload">'
	+'<div class="area" style="color:#888888;">'
	+'<span class="am upload-fileicon"></span>'
	+'<span><span>上传附件</span><span> ( 可上传10M )</span></span>'
	+'</div>'
	+'<div class="send-time m-l fix-ie6"><input id="sot_control" type="checkbox" disabled /></div>'
	+'<div class="send-time" style="color:#888888;"> 定时发送 </div>'
	+'</div></div>'
	// '<div style="font-size:0px;height:6px;">&nbsp;</div>'
	// 传情计划图片的选择区域
	+'<div id="select_convey_operate" style="clear:both;width:100%;">'
	+'</div>'
	+'<div style="border: 1px solid #E1E1E1;padding:0px;margin:0px;clear:both;">'
	+'<div class="html-editor">'
	+'<div class="operate-bar">'
	+'<div class="item-disable"><a hidefocus="true" class="am item-bold"></a></div>'
	+'<div class="item-disable"><a hidefocus="true" class="am item-justifyleft"></a></div>'
	+'<div class="item-disable item-disable-font"><a hidefocus="true" class="am item-fontselect"><span class="text-in">字体</span></a></div>'
	+'<div class="item-disable item-disable-font"><a hidefocus="true" class="am item-fontsizeselect"><span class="text-in">字号</span></a></div>'
	+'<div class="item-disable"><a hidefocus="true" class="am item-forecolor"></a></div>'
	+'<div class="item-disable"><a hidefocus="true" class="am item-insertimage"></a></div>'
	+'<div class="item-disable"><a hidefocus="true" class="am item-createlink"></a></div>'
	+'<div class="item-disable"><a hidefocus="true" class="am item-sign"></a></div>'
	+'<div class="item-disable item-disable-letter"><a hidefocus="true" class="am item-letter"></a><span class="text-out">信纸</span></div>'
	+'<div class="item-disable item-disable-line"><div class="am item-line"></div></div>'
	+'<div class="item-disable item-disable-postcard s_use_postcard" style="cursor:pointer;" title="使用明信片"><a hidefocus="true" class="am item-postcard"></a><span class="text-out">使用明信片</span></div>'
	+'<div class="item-disable item-disable-line"><div class="am item-line"></div></div>'
	+'<div class="item-disable item-disable-convey item-focus s_show_convey" style="cursor:pointer;" title="退出魔法情书"><a hidefocus="true" class="am item-convey"></a><span class="text-out">退出魔法情书</span></div>'
	+'</div>'
	+'</div>'
	// 传情贺卡的显示区域
	+'<div id="convey_area">'
	+'</div>'
	+'</div>'
	+'</div>'
	// 传情计划操作部分结束
	
	+'</div>'
	+'</div>'
	+'</td>'
	+'<td valign="top">'
	+'<div id="address" class="address"></div>'
	+'</td></tr>'
	+'<tr><td colspan=2>'
	+'<div id="bottom_operate_area" class="operate2">'
	+'</div>'
	+'</td></tr>'
	+'</tbody></table>';

// 发送普通信件页面的操作部分
/*
var common_top_html = '<li style="width:0"><h1></h1></li>'
	+'<li style="width:65px;"><a hidefocus="true" href="./main" class="two s_send_mail"><em><img src="'+ MailConst.ALL +'/spacer.gif" width="16px" height="16px" class="am icon_send" align="absmiddle"/></em>发送</a></li>'
	+'<li style="margin-top:1px;"><a hidefocus="true" href="./main" class="button s_save_mail"><em><img src="'+ MailConst.ALL +'/spacer.gif" width="16px" height="16px" class="am icon_draft" align="absmiddle"/></em>保存草稿</a></li>'
	+'<li style="width:115px;margin-left:5px;margin-top:10px;">'
	+'<input class="s_check_save" type="checkbox" value="on" id="saveCheckbox1" checked disabled="true" />保存到[已发送]</li>'
	+'<li id="mail.operate.message" class="grey" style="width:200px;margin-top:10px;"></li>';
*/
var common_top_html = '<div class="l-area"><div class="f-lf s_send_mail"><div class="a-bg bt-common bt-2 bt-first"><div class="a-bg inner"> 发  送 </div></div></div>'
	+'<div class="f-lf"><div class="bt-sprt"></div></div>'
	+'<div class="f-lf s_save_mail"><div class="a-bg bt-common bt-4"><div class="a-bg inner"> 保存草稿 </div></div></div>'
	+'<div class="f-lf"><div class="bt-sprt"></div></div>'
	+'<div class="f-lf"><div id="mail.operate.message" class="grey" style="width:200px;padding-top:8px;"></div></div></div>';
/*
var common_bottom_html = '<li style="width:0"><h2></h2></li>'
	+'<li style="width:65px;margin-top:1px;"><a hidefocus="true" href="./main" class="two s_send_mail"><em><img src="'+ MailConst.ALL +'/spacer.gif" width="16px" height="16px" class="am icon_send" align="absmiddle"/></em>发送</a></li>'
	+'<li style="margin-top:1px;"><a hidefocus="true" href="./main" class="button s_save_mail"><em><img src="'+ MailConst.ALL +'/spacer.gif" width="16px" height="16px" class="am icon_draft" align="absmiddle"/></em>保存草稿</a></li>'
	+'<li style="width:115px;margin-left:5px;margin-top:5px;">'
	+'<input class="s_check_save" type="checkbox" value="on" id="saveCheckbox2" checked disabled="true" />保存到[已发送]</li>';
*/
var common_bottom_html = '<div class="l-area"><div class="f-lf s_send_mail"><div class="a-bg bt-common bt-2 bt-first"><div class="a-bg inner"> 发  送 </div></div></div>'
	+'<div class="f-lf"><div class="bt-sprt"></div></div>'
	+'<div class="f-lf s_save_mail"><div class="a-bg bt-common bt-4"><div class="a-bg inner"> 保存草稿 </div></div></div>'
	+'<div class="f-lf"><div class="bt-sprt"></div></div></div>';

// 发送明信片页面的操作部分

var postcard_top_html = '<div class="l-area"><div class="f-lf s_send_postcard"><div class="a-bg bt-common bt-2 bt-first"><div class="a-bg inner"> 发  送 </div></div></div>'
	+'<div class="f-lf"><div class="bt-sprt"></div></div></div>';
var postcard_bottom_html = '<div class="l-area"><div class="f-lf s_send_postcard"><div class="a-bg bt-common bt-2 bt-first"><div class="a-bg inner"> 发  送 </div></div></div>'
	+'<div class="f-lf"><div class="bt-sprt"></div></div></div>';

// 定制传情贺卡的操作部分
var convey_top_html = '<div class="l-area"><div class="f-lf s_send_convey"><div class="a-bg bt-common bt-2 bt-first"><div class="a-bg inner"> 定  制 </div></div></div></div>';
var convey_bottom_html = '<div class="l-area"><div class="f-lf s_send_convey"><div class="a-bg bt-common bt-2 bt-first"><div class="a-bg inner"> 定  制 </div></div></div></div>';
var convey_top_disable_html = '<div class="l-area"><div class="f-lf"><div class="a-bg bt-common bt-2 bt-first"><div class="a-bg inner"> 定  制 </div></div></div></div>';
var convey_bottom_disable_html = '<div class="l-area"><div class="f-lf"><div class="a-bg bt-common bt-2 bt-first"><div class="a-bg inner"> 定  制 </div></div></div></div>';

// 回复信件时的blockquote引用模板
var revertMailTemplate = '<br /><blockquote dir="ltr" style="border-left:2px solid #000000;margin-left:10px;margin-right:0px;padding-left:5px;padding-right:0px;font-family:宋体;font-style:normal;font-variant:normal;font-weight:normal;font-size: 9pt;line-height:normal;font-size-adjust:none;font-stretch:normal;"><div style="font-family: 宋体; font-style: normal; font-variant: normal; font-weight: normal; font-size: 9pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- 原文 ----- </div><br/><b>发件人:</b> <a hidefocus="true" xhref="mailto:#{email}" mce_href="mailto:#{email}">#{name}</a> <br/><b>主　题:</b> #{subject}<br/><b>时　间:</b> #{date}<br/>#{cc}<br /><p>#{content}</p></blockquote>';

// 发送成功的模板
var sendSucAddContactListTemplate = '<div><dt> 邮件已发送成功！</dt>'
		+'<dl>#{emailList}</dl><ol id="optionList">#{optionList}</ol>'
		+'<ol id="autoSaveSendEmail">#{autoSaveSendEmail}</ol></div>'
		+'<div id="promptGift" style="color:#333333;line-height:200%;"></div>';
/******************************************* 写信页面end ******************************************/


// 会话模式下的草稿箱中编辑草稿的模板资源
var draftInConfTemplate = '<div id="draft_#{rowid}" class="write" style="background-color:white;width:100%;height:auto;clear:both;margin-bottom:0px;">'
	+'#{replyoperate}'
	+'<div style="padding-top:4px;background-color:#f6f6f6;clear:both;">'
	+'<div style="margin-left:10px;margin-right:10px;">'
	+'<ul style="clear:both;">'
	+'<li>收件人：<input tabindex="1"  type="text" class="input" id="to_#{rowid}" autocomplete="off" value=\'#{to}\' />'
	+'<input type="hidden" class="input" id="securityCode" value="" />'
	+'</li>'
	+'</ul style="clear:both;">'
	+'<ul id="cc_#{rowid}" style="display:#{show_cc};clear:both;">'
	+'<li>抄　送：<input type="text" class="input" id="wcc_#{rowid}" autocomplete="off" value=\'#{cc}\' /></li>'
	+'</ul>'
	+'<ul id="bcc_#{rowid}" style="display:#{show_bcc};clear:both;">'
	+'<li>密　送：<input type="text" class="input" id="wbcc_#{rowid}" autocomplete="off" value=\'#{bcc}\' /></li>'
	+'</ul>'
	+'<ul id="sub_#{rowid}" style="clear:both;display:none;">'
	+'<li>主　题：<input tabindex="2" id="subject_#{rowid}" type="text" class="input" value=\'#{subject}\' /></li>'
	+'</ul>'
	+'<div style="clear:both;height:34px;">'
	+'<div style="padding: 8px 16px 6px 0;float:left;clear:both;">'
	+'<div id="upload_file_area_#{rowid}" style="width:150px;height:20px;float:left;clear:both;position:relative;overflow:hidden;">'
	+'<span class="am upload-fileicon"></span>'
	+'<span id="upload_pointer_#{rowid}" style="position:relative;"><span>上传附件</span><span style="color: #666666;"> ( 可上传10M )</span><span id="gears_notify"></span></span>'
	+'<div id="upload_iframe_content_#{rowid}" style="position:relative;margin-top:-20px;"></div>'
	+'</div>'
	+'<div id="user_sign_area_#{rowid}" class="operate-area">'
	+'<div class="operate-line"> | </div>'
	+'<div class="operate-item"><a hidefocus="true" href="./main" mid="#{rowid}" class="draft_cc">抄送</a></div>'
	+'<div class="operate-item"><a hidefocus="true" href="./main" mid="#{rowid}" class="draft_bcc">密送</a></div>'
	+'<div class="operate-item"><a hidefocus="true" href="./main" mid="#{rowid}" class="draft_sub">编辑主题</a></div>'
	+'</div>'
	+'</div>'
	+'</div>'
	+'<div id="write_common_mail_#{rowid}" style="background-color: #f6f6f6;clear:both;">'
	+'<div style="width:92%;"><div id="uploadInfoDIV_#{rowid}" style="white-space:nowrap;width:100%;display:none;"></div></div>'
	
	+'<div id="compose.mess1_#{rowid}" style="padding:0px;margin:0px;width:100%;" tabindex="3">'
	+'<div id="ineditor_#{rowid}" tabindex="3" style="width:99.8%;height:350px;clear:both;border:1px solid #E1E1E1;background-color:white;overflow:hidden;"></div>'
	+'</div>'
	+'<div id="compose.mess2_#{rowid}" style="width:100%;display:none;padding:0px;margin:0px;">'
	+'<textarea id="editor.mess2_#{rowid}" style="border:1px solid #CCCCCC;clear:both;width:99.8%;height:350px;" tabindex="3"></textarea>'
	+'</div>'
	+'<div style="height:36px;width:100%;background-color:#F6F6F6">'
	+'<div style="width:60px;text-align:center;float:left;cursor:pointer;margin:6px 3px;"><input type="button" class="yes send_draft" rid="#{rowid}" value=" 发　送 " /></div>'
	+'<div style="width:60px;text-align:center;float:left;cursor:pointer;margin:6px 3px;"><input type="button" class="yes save_draft" rid="#{rowid}" value=" 保　存 " /></div>'
	+'<div style="width:60px;text-align:center;float:left;cursor:pointer;margin:6px 3px;"><input type="button" class="yes delt_draft" rid="#{rowid}" value=" 放　弃 " /></div>'
	+'</div>'
	
	
	+'</div>'
	+'</div>'
	+'</div>'
	+'</div>';

var draftReplyOperate = '<div class="reply-operate-item #{reply_focus} s_reply" rid="#{rowid}"><div class="am icon_reply icon-item"></div><div class="text-item"> 回　复 </div></div><div class="reply-operate-item #{forward_focus} s_forward" rid="#{rowid}"><div class="am icon_forward icon-item"></div><div class="text-item"> 转　发 </div></div>';

//Alva Add	 SOT
var SOTMailSuccessTemplate = '<div><dt>邮件定时发送设置成功！</dt>'
	+'<dl><dd>该邮件已加入配置选项的“定时发信”列表。  <a hidefocus="true" href="javascript:;" onclick="sot_load.getList(); return false;">查看</a> >></dd><br />'
	+'<dd>收件人：#{emailList}</dd>'  //'<dd id="optionList">#{optionList}</dd>'
	+'<dd id="sot_subject">主  题：#{sot_subject}</dd>'
	+'<dd id="sot_sendtime">发送时间：#{sot_sendtime}</dd></dl></div>'
	+'<div id="promptGift" style="color:#333333;line-height:200%;"><br />#{promptGift}</div>';

var SOTMailListTemplate = '<div class="cfgtemplate">'
	+'<div class="corner"><h4>定时发信<b>[<a hidefocus="true" href="javascript:;" class="grey s_cfg_main">返回选项首页</a>]</b></h4></div>'
	+'<dl><dd>写一封邮件，设置在一个特殊的未来时间发送给朋友。<input name="确定2" type="button" onclick="sot_load.sot_writenew(); return false;"  class="big_banner" value="新建一封"/></dl>'
	+'#{mails}'
    +'<dt style="margin-top:30px;margin-left:21px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;定时发送贺卡</dt>'
	+'#{cards}';
//Alva Add End	
	
var sendMailSuccTemplate = '<div class="sent">'
	+'<h4><span>&lt;&lt; <a hidefocus="true" href="main#mailList_1" class="s_succ_maillist">返回收件箱</a>　|　'
  	+'<a hidefocus="true" href="main#writeMail" class="s_succ_write">继续写信</a>&gt;&gt;</span>'
  	+'</h4>'
	+'<ul id="compose.sendinfo" style="height:auto;">'
	+'<dt> 邮件已发送成功！</dt>'
	+'</ul>'
  	+'<h4 id="chinaren_ad">'
  	+'</h4>'
	+'</div>';
	


var folderDetailTable = '<table align="center" cellpadding="0" cellspacing="0" id="mailfolder" class="mail-folder">';
var folderDetailTitle = '<tr><th width="25%">名称</th><th width="25%">邮件数</th><th width="25%">占有空间</th><th width="25%">操作</th></tr>';
var folderDetailTemplate = '<tr><td id="td#{id}"><a hidefocus="true" href="main#mailList_#{id}" class="grey s_manage_folder" fid="#{id}">#{name}</a></td><td>#{mailCount}</td><td>#{size}</td><td>#{operations}</td></tr>';
var folderDetailTemplate2 = '<tr class="personal"><td id="td#{id}"><a hidefocus="true" href="main#mailList_#{id}" class="grey s_manage_folder" fid="#{id}">#{name}</a></td><td>#{mailCount}</td><td>#{size}</td><td>#{operations}</td></tr>';


var newFolderListTemplate = '<div class="mail-folder-info">'
	+'<div class="if1"><div class="lf">文件夹管理</div><div class="rt"><div class="bdr"><div class="ctt" style="width:#{rate_size};"></div></div></div></div>'
	+'<div class="if2"><div class="rt">共<span> #{total_mail} </span>封邮件　#{size_status}</div></div>'
	+'<div id="folderDetailDIV">'
	+'<table cellpadding="0" cellspacing="0" id="mailfolder" class="mail-folder"><tbody>'
	+'<tr><th width="25%">名称</th><th width="25%">邮件数</th><th width="25%">占有空间</th><th width="25%">操作</th></tr>'
	+'#{folder_item}'
	+'</tbody></table>'
	+'</div>'
	+'<div class="ctf"><div class="lf1"><input id="newFolderName" type="text" /></div><div class="lf2 s_manage_create"><div class="a-bg bt-common bt-5"><div class="a-bg inner"> 添加文件夹 </div></div></div></div>'
	+'</div>';

var CustomMailNewTemplete = '<img id="customShowArea" style="margin:4px;border:0px;" src="" />';

var CustomMailListTemplete = '<div class="cfgtemplate">'
    +'<div class="corner"><h4>魔法情书<b>[<a hidefocus="true" href="main#initMailCfg" class="grey s_cfg_main">返回选项首页</a>]</b></h4></div>'
    +'<div class="plan">'
    +'<h5 style="width:92%;">魔法情书是闪电邮推出的一项个性服务。您可以定制6个月内，在每周或每月的固定时间发给朋友一封问候信，维持朋友间的感情，让你们的友情不间断传递。</h5>'
    +'</div>'
    +'<dl>'
    +'<dt>'
    +'<span><input type="button" value="删除该计划" class="s_cfg_deleteconvey" />'
    +'</span>类　别：#{str_type} </dt>'
    +'<dd>发送频率：#{str_freq}</dd>'
    +'<dd>包含节日：#{str_festival}</dd>'
    +'<dd>收 件 人：#{str_receivers}</dd>'
    +'<dd>邮件主题：#{str_subject} </dd>'
    +'<dd>抄　　送：#{str_ccself}</dd>'
    +'</dl>'
    +'</div>'//发件人信息结束
    +'</div>';//右侧结束

var CustomMailAltNewTemplete = '<div class="cfgtemplate">'
	+'<div class="corner"><h4>魔法情书<b>[<a hidefocus="true" href="javascript:;" class="grey s_cfg_main">返回选项首页</a>]</b></h4></div>'
    +'<div class="plan">'
    +'<h5>魔法情书是闪电邮推出的一项个性服务。您可以定制6个月内，在每周或每月的固定时间发给朋友一封问候信，维持朋友间的感情，让你们的友情不间断传递。</h5>'
    +'</div>'
    +'<dl><dt><a hidefocus="true" style="text-decoration:underline;" href="javascript:;" onclick="custom_mail_display.initConfPage();" >新建我的魔法情书</a></dt></dl>'
    +'</div>';

var SmtpPromptTemplete = '<div id="smtp_prompt_panel"><div class="cfgtemplate justfinder" style="text-align:left;width: 600px;height: 320px;position: absolute;left: 0px;top: 0px;z-index: 9999;filter:Alpha(opacity=100);-moz-opacity:1.0;">'
	+'<div id="del_group_prompt_move_btn" class="corner" style=""><h4>发信失败</h4></div>'
	+'<div id="del_group_prompt_panel_one">'
	+'<dl><dt>错误代码：</dt>#{str_errcode}</dl>'
	+'<dl><dt>错误原因：</dt><dd>#{str_prompt}</dd><dd>详细信息，请访问：<a hidefocus="true" href="#{link_prompt}" target="_blank" >#{link_prompt}</a></dd></dl>'
	+'<p align="center"><b><input type="button"  class="yes" value="关 闭" style="margin-top:20px;" onclick="writemail.remove_smtpPromptPanel();"  /> </b></p>'
	+'</div>'
	+'</div></div>';

var VIPLabTemplete = '<div class="cfgtemplate">'
            +'<form class="corner" id="labdiv">'
            +'<h4>梦工厂<b>[<a hidefocus="true" href="javascript:;" class="grey s_cfg_main">返回选项首页</a>]</b></h4>'
            +'<dl>'
            +'<dd>欢迎您进入搜狐闪电邮箱梦工场！</dd><dd>            这里所提供的服务仅仅是我们的一些尝试，我们会根据用户的使用情况或反馈决定是否将其加入正式功能或者移除。</dd>'
            +'<dd>&nbsp;&nbsp;</dd>'
            +'<dd><input type="button" class="yes s_cfg_lab_com" value="确　定" name="确定">　<input type="button" class="yes s_cfg_main" value="取　消" name="取消"></dd>'
            +'</dl>'
            +'<div class="dream">'
            +'<ul><img src="' + MailConst.ALL + '/dream1.jpg" /></ul>'
            +'<ul><li><span class="brown dspan">直达收件箱</span></li>'
            +'<li><b>开启此项，登录邮箱时您将可以跳过含有巨幅广告的欢迎页，直接到达收件箱。</b></li><p>#{D_INBOX}</p></ul>'
            +'</div>'
            +'<div class="dream"> <ul><img src="' + MailConst.ALL + '/dream2.jpg" /></ul>'
            +'<ul> <li><span class="brown dspan">桌面快捷方式 </span></li> <li><b>下载这个小文件，您将可以快速访问邮箱。（如下载后不能正常访问，请<a href="#{DREG}" target="_blank">点此修复</a>．）</b></li><p><a href="#{DOWNLOADLINK}" class="brown">下载到桌面</a></p> </ul> '
            +'</div>'
            +'<div class="dream">'
            +'<ul><img src="' + MailConst.ALL + '/dream3.jpg" /></ul>' 
            +'<ul><li><span class="brown dspan">星标邮件</span></li> <li><b>在左边工具栏增加一个“星标邮件”，对星标邮件统一管理。</b></li><p>#{STAR_LIST}</p></ul> '
            +'</div>'
            +'<dl style="border:0">'
            +'<dd><input type="button" class="yes s_cfg_lab_com" value="确　定" name="确定">　<input type="button" class="yes s_cfg_main" value="取　消" name="取消"></dd>'
            +'<dd>&nbsp;&nbsp;</dd>'
            +' <dd>有功能方面的建议，欢迎<a href="http://mail.sohu.com/mapp/help/mail/dream/dream.jsp" target="_blank"  class="brown">与我们交流</a></dd> '
            +'</dl>'
            +'</form>'
            +'</div>';
var LabTemplete = '<div class="cfgtemplate">'
            +'<form class="corner" id="labdiv">'
            //+'<div class="corner" id="labdiv">'
            +'<h4>梦工厂<b>[<a hidefocus="true" href="javascript:;" class="grey s_cfg_main">返回选项首页</a>]</b></h4>'
            +'<dl>'
            +'<dd>欢迎您进入搜狐闪电邮箱梦工场！</dd><dd>            这里所提供的服务仅仅是我们的一些尝试，我们会根据用户的使用情况或反馈决定是否将其加入正式功能或者移除。</dd>'
            +'<dd>&nbsp;&nbsp;</dd>'
            +'<dd><input type="button" class="yes s_cfg_lab_com" value="确　定" name="确定">　<input type="button" class="yes s_cfg_main" value="取　消" name="取消"></dd>'
            +'</dl>'
            +'<div class="dream">'
            +'<ul><img src="' + MailConst.ALL + '/dream1.jpg" /></ul>'
            +'<ul><li><span class="brown dspan">直达收件箱</span><b>得分：#{DREAM_1}<a href="http://mail.sohu.com/mapp/help/mail/dream/dreamdirect.jsp"   target="_blank" class="orange">我来打分</a></b></li>'
            +'<li><b>开启此项，登录邮箱时您将可以跳过含有巨幅广告的欢迎页，直接到达收件箱。</b></li><p>#{D_INBOX}</p></ul>'
            +'</div>'
            +'<div class="dream"> <ul><img src="' + MailConst.ALL + '/dream2.jpg" /></ul>'
            +'<ul> <li><span class="brown dspan">桌面快捷方式 </span><b>得分：#{DREAM_2}<a href="http://mail.sohu.com/mapp/help/mail/dream/dreamdesktop.jsp"   target="_blank" class="orange">我来打分</a></b></li> <li><b>下载这个小文件，您将可以快速访问邮箱。（如下载后不能正常访问，请<a href="#{DREG}" target="_blank">点此修复</a>．）</b></li><p><a href="#{DOWNLOADLINK}" class="brown">下载到桌面</a></p> </ul> '
            +'</div>'
            +'<div class="dream">'
            +'<ul><img src="' + MailConst.ALL + '/dream3.jpg" /></ul>' 
            +'<ul><li><span class="brown dspan">星标邮件</span>            <b>得分：#{DREAM_3}<a href="http://mail.sohu.com/mapp/help/mail/dream/dreamstarview.jsp" target="_blank" class="orange">我来打分</a></b></li> <li><b>在左边工具栏增加一个“星标邮件”，对星标邮件统一管理。</b></li><p>#{STAR_LIST}</p></ul> '
            +'</div>'
            +'<dl style="border:0">'
            +'<dd><input type="button" class="yes s_cfg_lab_com" value="确　定" name="确定">　<input type="button" class="yes s_cfg_main" value="取　消" name="取消"></dd>'
            +'<dd>&nbsp;&nbsp;</dd>'
            +' <dd>有功能方面的建议，欢迎<a href="http://mail.sohu.com/mapp/help/mail/dream/dream.jsp" target="_blank"  class="brown">与我们交流</a></dd> '
            +'</dl>'
            +'</form>'
            //+'</div>'
            +'</div>';


/*********************** 会话列表，读信页面的模板 ********************************/

/*
var conf_list_title = '<tr style="height:1px;">'
	+'<th style="width:1%;height:1px;"></th>'
	+'<th style="width:3%;height:1px;"></th>'
	+'<th style="width:3%;height:1px;"></th>'
	+'<th style="width:29%;height:1px;"></th>'
	+'<th style="width:3%;height:1px;"></th>'
	+'<th style="width:48%;height:1px;"></th>'
	+'<th style="width:3%;height:1px;"></th>'
	+'<th style="width:10%;height:1px;"></th>'
	// '<th style="width:4%;height:1px;"></th>'
	+'</tr>';
*/

// 用col来重新定义表格
var conf_list_title = '<col style="width:12px;"></col>'
	+'<col style="width:30px;"></col>'
	+'<col style="width:30px;"></col>'
	+'<col style="width:30px;"></col>'
	+'<col style="width:220px;"></col>'
	+'<col style="width:30px;"></col>'
	+'<col style="width:100%;"></col>'
	+'<col style="width:150px;"></col>';

/*
var conf_list_title_2 = '<col style="width:12px;"></col>'
	+'<col style="width:30px;"></col>'
	+'<col style="width:30px;"></col>'
	+'<col style="width:30px;"></col>'
	+'<col style="width:220px;"></col>'
	+'<col style="width:30px;"></col>'
	+'<col style="width:100%;"></col>'
	+'<col style="width:150px;"></col>';
*/
		
var conf_operate_bar1 = '<dl class="operate"><div class="r-area"></div></dl>';
var conf_operate_bar2 = '<dl class="operate2"><div class="r-area"></div></dl>';

//ad by zhangyinghui
//代收邮件
/************************************** 代收邮件 **************************************/
var SETPOP3TEMPLATE = '<div class="cfgtemplate">'
	+'<div class="corner">'
	+'<h4>'
	+ ExecFunc("G.pop3Service.name",[],"一箱多邮")
	+'<b>[<a hidefocus="true" href="javascript:;" onclick="mailPop.getPop3List();" class="grey">返回管理页面</a>]</b></h4>'
	+'</div>'
	+'<div id="ID_ALTERPOPACCOUNTMSG" style="margin-left:30px;display:none"><h5><img src="'+ MailConst.ALL +'/icon_ok.gif" align="absmiddle"/>修改<span id="ID_SPAN_POPUID">账号</span>的设置成功！</h5></div>'
	+'<dl style="border:0">'
	+'<dd id="SETPOP_ATTACHINFO_AREA"></dd>'
	+'<dd>请确认您的目标邮箱已开通pop功能。部分邮箱（如：QQ、Gmail以及Yahoo邮箱）需要手动开启。</dd><br/> '
	+'<dd>邮箱账号：<input id="ID_IPT_POPUID" type="text" /></dd>'
	+'<dd>邮箱密码：<input id="ID_IPT_POPPWD" type="password" />'
	+'<dd>pop3服务器：<input id="ID_IPT_POPSERVER" type="text" /><br/><font color="gray">(系统一般能自动识别，如不能识别请手动输入)</font>'
	+'<dd style="display:none">端口号：<input id="ID_IPT_POPPORT" type="text" />'
	+'</dd>'
	+'<dd style="margin-top:10px"><input id="ID_IPT_FIRSTPOP" type="checkbox" checked="checked" />　第一次收取一个月的邮件（超过300封时则收取最近300封）</dd>'
	+'<dd><input id="ID_IPT_RESERVERCOPY" type="checkbox" checked="checked" />　原邮箱保留副本</dd>'
	+'<dd><input id="ID_IPT_AUTOPOP" type="checkbox" value="" checked="checked" />　自动收取新邮件</dd>'
	+'<dd style="margin-top:20px;margin-left:90px;"><input id="ID_IPT_POPSUBMIT" name="确定" type="button"  class="yes" value="确 定" onclick="mailPop.createPopAccount()"/>　'
	+'<input name="取消" type="button"  class="yes" value="取 消" onclick="mailPop.getPop3List()"/></dd><br />'
	+'<dd>添加其它邮箱账号成功后，您将可以：</dd>'
	+'<dd>1. 自动收取该邮箱的信件  2. 自动导入该邮箱的地址簿   3. 在本邮箱中使用该账号发信。</dd>'
	+'</dl>'
	+'</div>';
	
var POP3LISTTEMPLATE = '<div class="cfgtemplate">'
	+'<div class="corner">'
	+'<h4>'
	+ ExecFunc("G.pop3Service.name",[],"一箱多邮")
	+'</h4>'
	+'</div>'
	+'<dl id="ID_MANAGEPOP_ATTACHINFO"><dd>使用此功能，在'+ USE_SYS.title +'邮箱中可管理多个邮箱的信件。<input type="button" onclick="mailPop.setPop3Account()" value="添加代收"  class="yes"/>'
	+'</dd>'
	+'</dl>'
	+'<dl>'
	+'<div style="width:60%;">'
	+'<div style="width:70%;float:left;color:red" id="ID_POP_ALERT_MSG">&nbsp;</div>'
	+'<input style="" type="button" class="big_banner yes" value="收取全部" id="ID_BTN_GETALLPOPMAIL"  onclick="mailPop.getPopMail()"/>'
	+'</div>'
	+'<table cellpadding="0" cellspacing="0" id="mailfolder" class="mail-folder" style="margin-left:0">'
	+'<tr>'
	+'<th width="30%" >代收邮件地址</th>'
	+'<th width="10%">未读数</th>'
	+'<th width="10%">总邮件数</th>'
	+'<th width="20%">操作</th>'
	+'<th width="30%">状态</th>'
	+'</tr>'
	+'</table>'
	+'</dl>'
	+'</div>';
	
var SETPOP3OKTEMPLATE = '<div class="cfgtemplate">'
	+'<div class="corner">'
	+'<h4>'
	+ ExecFunc("G.pop3Service.name",[],"一箱多邮")
	+'<b>[<a hidefocus="true" href="javascript:;" onclick="mailPop.getPop3List();" class="grey">返回管理页面</a>]</b></h4>'
	+'</div>'
	+'<dl>'
	+'<dt id="SETPOPOK_ATTACHINFO_TITLEAREA"> 恭喜您设置自动收取#{POPUID}成功！</dt ><br/>'
	+'<dd id="ID_POPCONTACT_STATUS"><img src="'+MailConst.ALL+'/loader.gif" width="16" height="16" align="absmiddle"/><span>现在<strong class="brown">#{POPUID}</strong>的联系人正在往本邮箱的地址簿导入...</span></dd>'
	+'<dd><img src="'+MailConst.ALL+'/ok.gif" width="16" height="16" align="absmiddle"/><span>以后，您可以在本邮箱中以<strong class="brown">#{POPUID}</strong>的名义进行发信。</span></dd>'
	+'<br/>'
	+'<dd>点击'
	+'<input name="确定" type="button" style="cursor:pointer" class="yes" value="收取邮件" onclick="mailPop.getPopMailList(\'#{FOLDERID}\',\'#{POPUID}\')"/>'
	+'，可以：</dd><br/>'
	+'<dd> <input name="checkbox" type="checkbox" value="" checked="checked" />'
	+'收取一个月的邮件到“<span class="brown"><strong>#{POPUID}</strong></span>”邮件夹中		</dd><br/>'
	+'<dd><input name="checkbox2" type="checkbox" value="" checked="checked" />'
	+'在原邮箱内保存副本</dd>'
	+'<dd style="margin-top:20px;margin-left:90px;">'
	+'</dd>'
	+'</dl>'
	+'</div>';

var TOURIAL_TEMPLATE = '<div class="new-user">'
	+'<div class="new-area">'
    +'<dd class="title_info"><img src="'+ MailConst.ALL +'/jiantou.gif" />　添加1个联系人</dd>'
    +'<dd>#{ADD_CONTACT}</dd>'
    +'<dd class="title_info"><img src="'+ MailConst.ALL +'/jiantou.gif" />　给联系人写封信</dd>'
    +'<dd>#{WRITE_LETTER}</dd>'
    +'<dd class="title_info"><img src="'+ MailConst.ALL +'/jiantou.gif" />　邀请好友注册</dd>'
    +'<dd>#{INVITE_FRIEND}</dd>'
    +'#{MAGIC}'
	+'</div>'
	+'</div>';
	
var TOURIAL_TEMPLATE = '<div class="ad-new"><dl>'
	+'<dd><img src="'+ MailConst.ALL +'/jiantou.gif" />　通知好友新地址</dd>'
	+'<dd><span>#{WRITE_LETTER}</span><span>奖励：</span><b class="am score-icon">&nbsp;&nbsp;&nbsp;&nbsp;</b> <b class="orange">20</b> </dd>'
	+'<dd><img src="'+ MailConst.ALL +'/jiantou.gif" />　给好友发点好玩的东西</dd>'
	+'<dd><span>#{INVITE_FRIEND}</span><span>奖励：</span><b class="am score-icon">&nbsp;&nbsp;&nbsp;&nbsp;</b> <b class="orange">30</b></dd>'
	+'<dd><img src="'+ MailConst.ALL +'/jiantou.gif" />　添加1名好友</dd>'
	+'<dd><span>#{ADD_CONTACT}</span><span>奖励：</span><b class="am score-icon">&nbsp;&nbsp;&nbsp;&nbsp;</b> <b class="orange">40</b></dd>'
	+'</dd>'
	+'<dt>#{MAGIC}</dt>'
	+'</dl>'
	+'</div>';
/************************************** 代收邮件end **************************************/
